<style>

    #alc, #div_tareas, #div_tareas div{
        float: left;
        margin-left: 30px;
    }

    #div_tareas{
        border: 1px dashed;
        padding: 20px;
    }


</style>
<article class="module width_full">
    <header><h3>Modificar alcance</h3></header>
    <div class="module_content lab">
        <table id="alc" border="0">
            <tr>
                <td>alc</td>
                <td><input type="text" value="<?php echo $this->alc['title'] ?>" disabled="disabled" /></td>
            </tr>
            <tr>
                <td>Descripcion</td>
                <td><textarea disabled="disabled"><?php echo $this->alc['description'] ?></textarea></td>
            </tr>

            <tr>
                <td>Fecha</td>
                <td><input type="text" value="<?php echo $this->alc['create_date'] ?>" disabled="disabled" /></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <?php if ($this->alc['status'] == 0) { ?>
                        <a href="<?php echo $this->baseUrl() . '/alcance/index/viewalcance/id/' . $this->alc->id . '/fin/fin' ?>">
                            <input type="button" value="Completado" />
                        </a>
                    <?php } else { ?>

                    <?php } ?>
                    <a href="<?php echo $this->baseUrl() . '/alcance/index/myalcance' ?>">
                        <input type="button" value="Cerrar" />
                    </a>
                </td>
            </tr>
        </table>
        <div id="div_tareas">
            <?php if ($this->count_tarea > 0) { ?>
                <?php foreach ($this->tareas as $tarea) { ?>
                    <div style="margin-left: 0"><?php echo $tarea['title'] ?></div>
                    <?php $estado = ($tarea['status'] == 1) ? "Completado" : "En progreso" ?>
                    <div>(<?php echo $estado ?>)</div>
                <?php } ?>
            <?php
            } else {
                echo "no hay Tareas";
            }
            ?>
        </div>
        <div style="clear: both"></div>
    </div>
</article>